// 批次线下的历年批次
import request from '@/utils/request'

// 获取所有志愿批次名
export function getAllBatchName() {
  return request({
    url: '/other/batch/getAllBatchName',
    method: 'post'
  })
}

// 获取地区
export function getCity(level) {
  return request({
    url: '/allProvince/getAllVocational',
    method: 'get',
    params: {level}
  })
}

// 获取历年批次的所有文理类型
export function getArtsSciences() {
  return request({
    url: '/previousYearsBatchEnrollmentData/getArtsSciences',
    method: 'get'
  })
}

// 查询历年批次招生数据（vf_previous_years_batch_enrollment_data）列表
export function listData(query) {
  return request({
    url: '/previousYearsBatchEnrollmentData/list',
    method: 'get',
    params: query
  })
}

// 查询历年批次招生数据（vf_previous_years_batch_enrollment_data）详细
export function getData(previousYearsBatchEnrollmentDataId) {
  return request({
    url: '/previousYearsBatchEnrollmentData/' + previousYearsBatchEnrollmentDataId,
    method: 'get'
  })
}

// 新增历年批次招生数据（vf_previous_years_batch_enrollment_data）
export function addData(data) {
  return request({
    url: '/previousYearsBatchEnrollmentData',
    method: 'post',
    data: data
  })
}

// 修改历年批次招生数据（vf_previous_years_batch_enrollment_data）
export function updateData(data) {
  return request({
    url: '/previousYearsBatchEnrollmentData',
    method: 'put',
    data: data
  })
}

// 删除历年批次招生数据（vf_previous_years_batch_enrollment_data）
export function delData(previousYearsBatchEnrollmentDataId) {
  return request({
    url: '/previousYearsBatchEnrollmentData/' + previousYearsBatchEnrollmentDataId,
    method: 'delete'
  })

}
